.TH "newdbDialog" 3 "9 Jun 2009" "QMediaLinker" \" -*- nroff -*-
.ad l
.nh
.SH NAME
newdbDialog \- 
.SH SYNOPSIS
.br
.PP
\fC#include <newdb.h>\fP
.PP
Inherits \fBQDialog\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBnewdbDialog\fP (\fBQWidget\fP *parent=0)"
.br
.ti -1c
.RI "\fBnewdbDialog\fP (\fBnewdbDialog\fP *\fBdialog\fP, \fBQWidget\fP *parent=0)"
.br
.ti -1c
.RI "\fBnewdbDialog\fP (const QString &type, const QString &host, const QString &name, const QString &port, const QString &user, const QString &nick, const QString &comm, \fBQWidget\fP *parent=0)"
.br
.ti -1c
.RI "void \fBdraw\fP ()"
.br
.ti -1c
.RI "\fBdbConnector\fP * \fBsetUpDatabase\fP ()"
.br
.ti -1c
.RI "QString \fBgetDriver\fP ()"
.br
.ti -1c
.RI "QString \fBgetHost\fP ()"
.br
.ti -1c
.RI "QString \fBgetName\fP ()"
.br
.ti -1c
.RI "QString \fBgetPort\fP ()"
.br
.ti -1c
.RI "QString \fBgetUser\fP ()"
.br
.ti -1c
.RI "QString \fBgetNick\fP ()"
.br
.ti -1c
.RI "QString \fBgetComment\fP ()"
.br
.in -1c
.SS "Private Slots"

.in +1c
.ti -1c
.RI "void \fBchangePort\fP (QString dbType)"
.br
.in -1c
.SS "Private Attributes"

.in +1c
.ti -1c
.RI "QDialogButtonBox * \fBbuttonBox\fP"
.br
.ti -1c
.RI "QComboBox * \fBdbTypeBox\fP"
.br
.ti -1c
.RI "QLineEdit * \fBdbHostLineEdit\fP"
.br
.ti -1c
.RI "QLineEdit * \fBdbNameLineEdit\fP"
.br
.ti -1c
.RI "QSpinBox * \fBdbPortLineEdit\fP"
.br
.ti -1c
.RI "QLineEdit * \fBdbUserLineEdit\fP"
.br
.ti -1c
.RI "QLineEdit * \fBdbPassLineEdit\fP"
.br
.ti -1c
.RI "QLabel * \fBdbTypeLabel\fP"
.br
.ti -1c
.RI "QLabel * \fBdbHostLabel\fP"
.br
.ti -1c
.RI "QLabel * \fBdbNameLabel\fP"
.br
.ti -1c
.RI "QLabel * \fBdbPortLabel\fP"
.br
.ti -1c
.RI "QLabel * \fBdbUserLabel\fP"
.br
.ti -1c
.RI "QLabel * \fBdbPassLabel\fP"
.br
.ti -1c
.RI "QFrame * \fBline\fP"
.br
.ti -1c
.RI "QFrame * \fBline_2\fP"
.br
.ti -1c
.RI "QFrame * \fBline_3\fP"
.br
.ti -1c
.RI "QFrame * \fBline_4\fP"
.br
.ti -1c
.RI "QFrame * \fBline_5\fP"
.br
.ti -1c
.RI "QFrame * \fBline_6\fP"
.br
.ti -1c
.RI "QFrame * \fBline_7\fP"
.br
.ti -1c
.RI "QLabel * \fBdbCommentLabel\fP"
.br
.ti -1c
.RI "QTextEdit * \fBdbCommentTextEdit\fP"
.br
.ti -1c
.RI "QFrame * \fBline_8\fP"
.br
.ti -1c
.RI "QLineEdit * \fBdbNickLineEdit\fP"
.br
.ti -1c
.RI "QLabel * \fBdbNickLabel\fP"
.br
.ti -1c
.RI "QFrame * \fBline_9\fP"
.br
.ti -1c
.RI "QTextEdit * \fBInfoTextEdit\fP"
.br
.ti -1c
.RI "QLabel * \fBInfoLabel\fP"
.br
.ti -1c
.RI "\fBnewdbDialog\fP * \fBdialog\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
The \fBnewdbDialog\fP gathers all informations about the new database form. 
.SH "Constructor & Destructor Documentation"
.PP 
.SS "newdbDialog::newdbDialog (\fBQWidget\fP * parent = \fC0\fP)"
.PP
This the main constructor of the \fBnewdbDialog\fP class 
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP A pointer to the parent which called the constructor. 
.RE
.PP

.PP
References draw().
.SS "newdbDialog::newdbDialog (\fBnewdbDialog\fP * dialog, \fBQWidget\fP * parent = \fC0\fP)"
.PP
This overload of the main constructor is provided for convenience, it generates a new database dialog from another already filled one. 
.PP
\fBParameters:\fP
.RS 4
\fIdialog\fP 
.br
\fIparent\fP A pointer to the parent which called the constructor. 
.RE
.PP

.PP
References dbCommentTextEdit, dbHostLineEdit, dbNameLineEdit, dbNickLineEdit, dbPortLineEdit, dbTypeBox, dbUserLineEdit, draw(), getComment(), getDriver(), getHost(), getName(), getNick(), getPort(), and getUser().
.SS "newdbDialog::newdbDialog (const QString & type, const QString & host, const QString & name, const QString & port, const QString & user, const QString & nick, const QString & comm, \fBQWidget\fP * parent = \fC0\fP)"
.PP
This overload of the main constructor is provided for convenience, it generates a new database dialog from the value passed as arguments. 
.PP
\fBParameters:\fP
.RS 4
\fItype\fP the driver used to connect to the database. 
.br
\fIhost\fP the Hostname of the server hosting the database. 
.br
\fIname\fP the name of the database or the file if SQLite. 
.br
\fIport\fP the port to which the database daemon is listening. 
.br
\fIuser\fP the login used to connect. 
.br
\fInick\fP a nickname the user wants to use for the added database. 
.br
\fIcomm\fP a comment the user wants to use for the added database. 
.br
\fIparent\fP A pointer to the parent which called the constructor. 
.RE
.PP

.PP
References dbCommentTextEdit, dbHostLineEdit, dbNameLineEdit, dbNickLineEdit, dbPortLineEdit, dbTypeBox, dbUserLineEdit, and draw().
.SH "Member Function Documentation"
.PP 
.SS "void newdbDialog::draw ()"
.PP
This procedure actually draw the widget and its content, it sets the widgets positions. And finally shows it. 
.PP
References buttonBox, changePort(), dbCommentLabel, dbCommentTextEdit, dbHostLabel, dbHostLineEdit, dbNameLabel, dbNameLineEdit, dbNickLabel, dbNickLineEdit, dbPassLabel, dbPassLineEdit, dbPortLabel, dbPortLineEdit, dbTypeBox, dbTypeLabel, dbUserLabel, dbUserLineEdit, InfoLabel, InfoTextEdit, line, line_2, line_3, line_4, line_5, line_6, line_7, line_8, and line_9.
.PP
Referenced by newdbDialog().
.SS "\fBdbConnector\fP * newdbDialog::setUpDatabase ()"
.PP
This function establishes the connection to the database using the \fBdbConnector\fP class, passing the arguments given by the user. 
.PP
\fBReturns:\fP
.RS 4
\fBdbConnector\fP a pointer to the newly created database connector. 
.RE
.PP

.PP
References dbConnector::addConnection(), dbCommentTextEdit, dbHostLineEdit, dbNameLineEdit, dbNickLineEdit, dbPassLineEdit, dbPortLineEdit, dbTypeBox, dbUserLineEdit, dbConnector::setComment(), and dbConnector::setNickName().
.PP
Referenced by MainWindow::fillLists().
.SS "QString newdbDialog::getDriver ()"
.PP
This function is an accessor to the Driver parameter of the class. The parameter is actually stored in the corresponging Widget. 
.PP
\fBReturns:\fP
.RS 4
QString the text stored in the widget. 
.RE
.PP

.PP
References dbTypeBox.
.PP
Referenced by newdbDialog().
.SS "QString newdbDialog::getHost ()"
.PP
This function is an accessor to the Host parameter of the class. The parameter is actually stored in the corresponging Widget. 
.PP
\fBReturns:\fP
.RS 4
QString the text stored in the widget. 
.RE
.PP

.PP
References dbHostLineEdit.
.PP
Referenced by newdbDialog().
.SS "QString newdbDialog::getName ()"
.PP
This function is an accessor to the Name parameter of the class. The parameter is actually stored in the corresponging Widget. 
.PP
\fBReturns:\fP
.RS 4
QString the text stored in the widget. 
.RE
.PP

.PP
References dbNameLineEdit.
.PP
Referenced by newdbDialog().
.SS "QString newdbDialog::getPort ()"
.PP
This function is an accessor to the Port parameter of the class. The parameter is actually stored in the corresponging Widget. 
.PP
\fBReturns:\fP
.RS 4
QString the text stored in the widget. 
.RE
.PP

.PP
References dbPortLineEdit.
.PP
Referenced by newdbDialog().
.SS "QString newdbDialog::getUser ()"
.PP
This function is an accessor to the User parameter of the class. The parameter is actually stored in the corresponging Widget. 
.PP
\fBReturns:\fP
.RS 4
QString the text stored in the widget. 
.RE
.PP

.PP
References dbUserLineEdit.
.PP
Referenced by newdbDialog().
.SS "QString newdbDialog::getNick ()"
.PP
This function is an accessor to the Nick parameter of the class. The parameter is actually stored in the corresponging Widget. 
.PP
\fBReturns:\fP
.RS 4
QString the text stored in the widget. 
.RE
.PP

.PP
References dbNickLineEdit.
.PP
Referenced by newdbDialog().
.SS "QString newdbDialog::getComment ()"
.PP
This function is an accessor to the Comment parameter of the class. The parameter is actually stored in the corresponging Widget. 
.PP
\fBReturns:\fP
.RS 4
QString the text stored in the widget. 
.RE
.PP

.PP
References dbCommentTextEdit.
.PP
Referenced by newdbDialog().
.SS "void newdbDialog::changePort (QString dbType)\fC [private, slot]\fP"
.PP
This slot is used to change the port value to the default port of the corresponding database type selected by the user. 
.PP
\fBParameters:\fP
.RS 4
\fIdbType\fP the type of the database chosen by the user. 
.RE
.PP

.PP
References dbPortLineEdit.
.PP
Referenced by draw().
.SH "Member Data Documentation"
.PP 
.SS "QDialogButtonBox* \fBnewdbDialog::buttonBox\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QComboBox* \fBnewdbDialog::dbTypeBox\fP\fC [private]\fP"
.PP
Referenced by draw(), getDriver(), newdbDialog(), and setUpDatabase().
.SS "QLineEdit* \fBnewdbDialog::dbHostLineEdit\fP\fC [private]\fP"
.PP
Referenced by draw(), getHost(), newdbDialog(), and setUpDatabase().
.SS "QLineEdit* \fBnewdbDialog::dbNameLineEdit\fP\fC [private]\fP"
.PP
Referenced by draw(), getName(), newdbDialog(), and setUpDatabase().
.SS "QSpinBox* \fBnewdbDialog::dbPortLineEdit\fP\fC [private]\fP"
.PP
Referenced by changePort(), draw(), getPort(), newdbDialog(), and setUpDatabase().
.SS "QLineEdit* \fBnewdbDialog::dbUserLineEdit\fP\fC [private]\fP"
.PP
Referenced by draw(), getUser(), newdbDialog(), and setUpDatabase().
.SS "QLineEdit* \fBnewdbDialog::dbPassLineEdit\fP\fC [private]\fP"
.PP
Referenced by draw(), and setUpDatabase().
.SS "QLabel* \fBnewdbDialog::dbTypeLabel\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QLabel* \fBnewdbDialog::dbHostLabel\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QLabel* \fBnewdbDialog::dbNameLabel\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QLabel* \fBnewdbDialog::dbPortLabel\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QLabel* \fBnewdbDialog::dbUserLabel\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QLabel* \fBnewdbDialog::dbPassLabel\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QFrame* \fBnewdbDialog::line\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QFrame* \fBnewdbDialog::line_2\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QFrame* \fBnewdbDialog::line_3\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QFrame* \fBnewdbDialog::line_4\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QFrame* \fBnewdbDialog::line_5\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QFrame* \fBnewdbDialog::line_6\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QFrame* \fBnewdbDialog::line_7\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QLabel* \fBnewdbDialog::dbCommentLabel\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QTextEdit* \fBnewdbDialog::dbCommentTextEdit\fP\fC [private]\fP"
.PP
Referenced by draw(), getComment(), newdbDialog(), and setUpDatabase().
.SS "QFrame* \fBnewdbDialog::line_8\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QLineEdit* \fBnewdbDialog::dbNickLineEdit\fP\fC [private]\fP"
.PP
Referenced by draw(), getNick(), newdbDialog(), and setUpDatabase().
.SS "QLabel* \fBnewdbDialog::dbNickLabel\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QFrame* \fBnewdbDialog::line_9\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QTextEdit* \fBnewdbDialog::InfoTextEdit\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "QLabel* \fBnewdbDialog::InfoLabel\fP\fC [private]\fP"
.PP
Referenced by draw().
.SS "\fBnewdbDialog\fP* \fBnewdbDialog::dialog\fP\fC [private]\fP"
.PP


.SH "Author"
.PP 
Generated automatically by Doxygen for QMediaLinker from the source code.
